import {Component, OnInit} from '@angular/core';

@Component({
    selector: 'app-dynamic-certification-recording',
    templateUrl: './dynamic-certification-recording.component.html',
    // styleUrls: ['./dynamic-certification-recording.component.less'],
})
export class DynamicCertificationRecordingComponent implements OnInit {

    constructor() {
    }

    recordListData = [];

    ngOnInit() {
        setTimeout(() => {
            this.recordListData = [
                {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-11 09:53:37'},
                {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-11 09:53:37'},
                {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-11 09:53:37'},
                {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-11 09:53:37'},
                {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-11 09:53:37'},
                {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-11 09:53:37'},
                {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-11 09:53:37'},
            ];
        }, 1000);
    }

    // 查看更多
    loadMore() {
        this.recordListData.push(
            {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-11 09:53:37'},
            {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-12 09:53:37'},
            {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-13 09:53:37'},
            {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-14 09:53:37'},
            {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-15 09:53:37'},
            {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-16 09:53:37'},
            {address: '山东省济南市高新区浪潮软件科技园', time: '2020-03-17 09:53:37'},
        );
    }

    // 点击的动态鉴伪记录
    selectRecord(data: any) {
        console.log('data = ', data);
    }
}
